package vrp;

import com.google.appengine.api.datastore.Key;

import java.util.ArrayList;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable
public class Route {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;

    @Persistent
    private ArrayList<Key> customers;

    @Persistent
    private ArrayList<Bundle> bundles;

    public Route(ArrayList<Key> customers, ArrayList<Bundle> bundles) {
    	this.customers = customers;
    	this.bundles = bundles;
    }

    public Key getKey() {
        return this.key;
    }

    public ArrayList<Key> getCustomers() {
        return this.customers;
    }

    public ArrayList<Bundle> getBundles() {
        return this.bundles;
    }

    public void setKey(Key someKey) {
    	this.key = someKey;
    }

    public void setCustomers(ArrayList<Key> customers) {
        this.customers = customers;
    }

    public void setBundles(ArrayList<Bundle> bundles) {
        this.bundles = bundles;
    }
}